Editor.Decks.LineVocabClass = function () {
	var figureLine;
	var impl;
	var shape;
	return {
		init: function (s) {
			shape = s;
			impl = shape.getImplementation();
		},
		remove: function () {
			figureLine.remove();
			delete figureLine;
		},
		draw: function () {
			var x1 = shape.getX() + Editor.CONFIG.DECK_LINECLASS_DELTA_X;
			var y1 = shape.getY() + Editor.CONFIG.DECK_LINECLASS_DELTA_Y;
			var x2 = shape.getX() + shape.getWidth() - Editor.CONFIG.DECK_LINECLASS_DELTA_X;
			var y2 = shape.getY() + Editor.CONFIG.DECK_LINECLASS_DELTA_Y;
			figureLine = Editor.STATE.CANVAS.path(["M", x1, y1, "L", x2, y2].join(',')).attr(Editor.CONFIG.VOCABCLASS_SHAPE_ATTR);
		},
		redraw: function () {
			var x1 = shape.getX() + Editor.CONFIG.DECK_LINECLASS_DELTA_X;
			var y1 = shape.getY() + Editor.CONFIG.DECK_LINECLASS_DELTA_Y;
			var x2 = shape.getX() + shape.getWidth() - Editor.CONFIG.DECK_LINECLASS_DELTA_X;
			var y2 = shape.getY() + Editor.CONFIG.DECK_LINECLASS_DELTA_Y;
			figureLine.attr({
				path: ["M", x1, y1, "L", x2, y2].join(',')
			});
		},
		mouseover: function () {},
		mouseout: function () {},
		click: function () {},
		translate: function (deltaX, deltaY) {
			figureLine.translate(deltaX, deltaY);
		},
		toFront: function () {
			figureLine.toFront();
		}
	}
}
